﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Collections.Specialized;

namespace KinectControl
{
    public static class Config
    {
        public static string PastaRaiz
        {
            get
            {
                if (!VitrineInterativa.Properties.Settings.Default.PastaRaiz.EndsWith("\\"))
                    return VitrineInterativa.Properties.Settings.Default.PastaRaiz + "\\";
                else
                    return VitrineInterativa.Properties.Settings.Default.PastaRaiz;
            }
        }

        public static string Serial
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.Serial;
            }
        }

        public static string CorDoFundo
        {
            get
            {
                return "\\Fundo" + VitrineInterativa.Properties.Settings.Default.CorDoFundo;
            }
        }

        public static string ModoApresentacao
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.ModoApresentacao;
            }
        }

        public static string CorTituloAlbum
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.CorTituloAlbum;
            }
        }

        public static long NumCaptacao
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.NumCaptacao;
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.NumCaptacao = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }

        public static long NumInteracao
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.NumInteracao;
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.NumInteracao = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }

        public static long IntervaloTutorial
        {
            get
            {
                return Convert.ToInt64(VitrineInterativa.Properties.Settings.Default.IntervaloTutorial);
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.IntervaloTutorial = value.ToString();
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }

        public static string TelaExtendida
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.TelaExtendida;
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.TelaExtendida = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }

        public static long TempoSemCaptacao
        {
            get { return VitrineInterativa.Properties.Settings.Default.TempoSemCaptacao; }
            set 
            {
                VitrineInterativa.Properties.Settings.Default.TempoSemCaptacao = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }

        public static string AtivarVideoFullScreen
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.AtivarVideoFullScreen;
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.AtivarVideoFullScreen = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }
        
        public static string AtivarNearMode
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.AtivarNearMode;
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.AtivarNearMode = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }

        public static string UsarUmaMaoEntrar
        {
            get
            {
                return VitrineInterativa.Properties.Settings.Default.UsarUmaMaoEntrar;
            }
            set
            {
                VitrineInterativa.Properties.Settings.Default.UsarUmaMaoEntrar = value;
                VitrineInterativa.Properties.Settings.Default.Save();
            }
        }
    }
}

    

